﻿using Newtonsoft.Json;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alison.EFCore.Dto
{
    /// <summary>
    /// 根据用户名和密码，返回Token
    /// </summary>
    [SwaggerSchema(Title = "获取Token[LoginDTO]", Description = "根据用户名和密码，返回Token")]
    public class LoginDTO
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [JsonProperty("username")]
        [SwaggerSchema(Title = "获取Token", Description = "用户名")]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [JsonProperty("password")]
        [SwaggerSchema(Title = "获取Token", Description = "密码")]
        public string Password { get; set; }
    }
}
